package com.fc.mall.dao;

import com.fc.mall.dto.SmsBargainPromotionProduct;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 砍价活动Dao
 * Created by Charles on 2019/10/8.
 */
public interface SmsBargainPromotionProductDao {
    /**
     * 根据活动编号查询砍价产品
     */
    List<SmsBargainPromotionProduct> getListByPromotionId(@Param("promotionId") Long promotionId);

    int updateByPrimaryKey(SmsBargainPromotionProduct record);

    int insert(SmsBargainPromotionProduct record);

    int deleteByPrimaryKey(Long id);

    int deleteByPromoIdAndBargainId(@Param("promotionId")Long promotionId, @Param("bargainId") Long bargainId);

    SmsBargainPromotionProduct getByPrimaryKey(@Param("id") Long id);
}
